Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Basically I'm trying to create it so that if I have selected a media-item (Property-field on my document-type) it shall show the img and If I haven't selected any media it shall run a Razor Macro instead.
Any ideas?
You can do this with RenderPage:
@if(myBoolean) { <img src="blank.gif" />} else { @RenderPage("~/macroScripts/MyOtherRazorMacro.cshtml")}
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
If true { run Razor-Macro1} Else {run Razor-Macro2}
Basically I'm trying to create it so that if I have selected a media-item (Property-field on my document-type) it shall show the img and If I haven't selected any media it shall run a Razor Macro instead.
Any ideas?
You can do this with RenderPage:
is working on a reply...